package com.jiuyin.dianjing.api.enums;


/**
 * The enum Api enum.
 *
 * @author Administrator
 */
public enum ApiEnum {

    //<editor-fold desc="登录注册模块">
    /**
     * 用户密码登录
     */
    APP_LOGIN_WITH_PWD_API("appLogin", "api/register/userLogin"),
    /**
     * 短信验证
     */
    APP_CHECK_SMS_API("appMsgLogin", "api/register/checkSms"),

    /**
     * 注册用户
     */
    APP_REGISTER_API("appMobileLogin", "api/register/registerUser"),

    /**
     * 用户验证码登录
     */
    APP_LOGIN_WITH_CODE_API("userCodeLogin", "api/register/userCodeLogin"),
    /**
     * 一键登录
     */
    APP_LOGIN_TOKEN_API("appTokenLogin", "api/register/tokenLogin"),


    /**
     * app退出登录
     */
    APP_LOGOUT_API("appLogout", "api/logout"),
    /**
     * 发送短信
     */
    APP_SEND_SMS_API("appSendSms", "api/register/sendSms"),
    /**
     * 修改用户信息
     */
    APP_UPDATE_USER_API("appSolidCode", "api/register/updateClientUser"),
    /**
     * 设置密码
     */
    APP_USER_PWD_SET_API("appUserPwdSet", "api/register/setNewPassword"),
    /**
     * 查询资讯列表
     */
    APP_ALL_INFORMATION_API("appAllInformation", "api/home/getAllInformation"),

    /**
     * 资讯详情
     */
    APP_INFORMATION_DETAIL_API("appAllInformationDetail", "api/home/getInformationDetail"),
    /**
     * 给评论点赞
     */
    APP_THUMB_API("appThumb", "api/home/thumb"),
    /**
     * 取消点赞
     */
    APP_CANCEL_THUMB_API("appCancelThumb", "api/home/cancelThumb"),
    /**
     * 评论资讯
     */
    APP_COMMENT_INFORMATION_API("appCommentInformation", "api/home/commentInformation"),
    /**
     * 关键词模糊查询
     */
    APP_GET_NAME_TITLE_API("appGetNameAndTitle", "api/home/getNameAndTitle"),
    /**
     * 获取历史搜索关键词
     */
    APP_GET_ORDER_WORDS_API("appGetOrderWords", "api/home/getOrderWords"),

    /**
     * 关键词查询
     */
    APP_GET_SEARCH_BYWORD_API("appGetHomeSearchByWord", "api/home/getHomeSearchByWord"),

    /**
     * 获取轮播图
     */
    APP_GET_VIEW_PAGE_API("appGetViewPage", "api/home/getViewPage"),

    /**
     * 首页轮播资讯列表
     */
    APP_VIEW_PAGE_TOP_INFORMATION_LIST("appGetViewPage", "api/home/getViewPageTopInformationList"),

    /**
     * 获取游戏列表
     */
    APP_GET_GAME_API("appGetGame", "api/home/getGame"),


    //<editor-fold desc="赛事模块">
    /**
     * 1.创建比赛
     */
    APP_CREATE_COMPETITION_API("createCompetition", "api/competition/createCompetition"),

    /**
     * 2.查询所有可以加入的比赛
     */
    APP_SEARCHJOIN_COMPETITION_API("searchJoinCompetition", "api/competition/searchJoinCompetition"),

    /**
     * 3.查询赛事详情
     */
    APP_COMPETE_DETAIL_API("competeDetail", "api/competition/competeDetail"),

    /**
     * 4.我的赛事
     */
    APP_MY_COMPETITIONS_API("myCompetitions", "api/competition/myCompetitions"),
    /**
     * 6.获取游戏logo列表
     */
    APP_MY_COMPETITION_GAME_LIST_API("myCompetitionGameList", "api/competition/myCompetitionGameList"),
    /**
     * 7.分页获取所有比赛和状态
     */
    APP_GETCOMPETITIONALLCOURSE("getCompetitionAllCourse", "api/competition/getCompetitionAllCourse"),
    /**
     * 8.获取所有新申请加入比赛的列表
     */
    APP_getApplyForFirstAll("getApplyForFirstAll", "api/competition/getApplyForFirstAll"),

    /**
     * 15.申请加入比赛
     */
    APP_CHECK_ISELIGIBLE_API("checkIsEligible", "api/competition/checkIsEligible"),
    //</editor-fold>

    /**
     * 搜索热词
     */
    APP_SEARCH_API("appSearch", "api/work"),

    //<editor-fold desc="社区模板">
    /***
     * 获取帖子列表
     */
    APP_GET_TOPIC_LIST("getTopList", "api/topic/getTopicList"),
    /***
     * 发帖
     */
    APP_PUBLISH_TOPIC("publishTopic", "api/topic/publishTopic"),
    /**
     * 评论帖子
     */
    APP_COMMENT_TOPIC("commentTopic", "api/topic/commentTopic"),
    /**
     * 回复评论
     */
    APP_REPLY_TO_COMMENT_ON_TOPIC("replyToCommentOnTopic", "api/topic/replyToCommentOnTopic"),
    /**
     * 获取帖子评论回复列表分页
     */
    APP_GET_REPLY_LIST("getReplyToCommentOnTopicList", "api/topic/getReplyToCommentOnTopicList"),
    /**
     * 新增分享记录
     */
    APP_ADD_SHARE_LOG("addShareLog", "api/topic/addShareLog"),

    /**
     * 获取标签列表
     */
    APP_GET_TAG_LIST("getTagList", "api/topic/getTagList"),
    /**
     * 给评论和帖子点赞或取消赞
     */
    APP_TOPIC_THUMB("topicThumb", "api/topic/topicThumb"),
    /**
     * 关注或取消
     */
    APP_ADD_ATTENTION_LOG("addAttentionLog", "api/topic/addAttentionLog"),
    /**
     * 13.观看记录
     */
    APP_addClickLog("addClickLog", "api/topic/addClickLog"),
    //</editor-fold>
    /**
     * 我的
     * 获取个人数据
     */
    APP_MY_INFORMATION_DETAIL_API("getMyInformationDetail", "api/mine/getInformationDetail"),

    /**
     * 我的
     * 获取粉丝列表
     */
    APP_GET_USER_FANS_LIST_API("getUserFansList", "api/mine/getUserFansList"),

    /**
     * 我的
     * 获取收藏列表
     */
    APP_GET_USER_COLLECT_LIST_API("getUserCollectList", "api/mine/getUserCollectList"),

    /**
     * 我的
     * 获取用户关注列表
     */
    APP_GET_USER_ATTENTION_LIST_API("getUserAttentionList", "api/mine/getUserAttentionList"),
    /**
     * 我的
     * 修改密码
     */
    APP_UPDATE_PASSWORD_API("updatePassword", "api/register/updatePassword"),


    /**
     * 获取阶段赛事数据
     */
    APP_COMPETE_DATA_STAGE_RACE_API("getCompeteDataByStageRace", "api/competition/getCompeteDataByStageRace"),
    /**
     * 获取其他用户主页数据
     */
    APP_GET_USER_DETAIL_API("getUserDetail", "api/common/getUserDetail"),
    /**
     * 修改赛事数据(仅修改比分)
     */
    APP_UPDATE_COMPETE_DATA_SINGLE_API("updateCompeteDataOfSingle", "api/competition/updateCompeteDataOfSingle"),

    /**
     * 获取赛事排名列表
     */
    APP_GET_COMPETE_RANKING_LIST("getCompeteRankingList", "api/competition/getCompeteRankingList"),
    /**
     * 修改赛事截图(地址地址用逗号拼接)
     */
    APP_UPDATE_COMPET_SCREEN_SHOT("updateCompetScreenShot", "api/competition/updateCompetScreenShot"),

    /**
     * 消息
     * 获取用户的消息列表式
     */
    APP_GET_USER_NEWS_LIST("getUserNewsList", "api/common/getUserNewsList"),

    /**
     * 赛事
     * 获取参赛成员or战队列表
     */
    APP_GET_COMPET_MEMBER_LIST("getCompetMemberList", "api/competition/getCompetMemberList"),

    /**
     * 战队
     * 创建战队
     */
    APP_CREATE_TEAM("createTeam", "api/competition/createTeam"),
    /**
     * 战队
     * 获取创建战队信息（应用在创建战队页面）
     */
    APP_GET_CREATE_TEAM_DATA("getCreateTeamData", "api/common/getCreateTeamData"),
    ;


    /**
     * 9.创建战队
     */
    public static final String CREATE_TEAM = "api/competition/createTeam";
    /**
     * 1.检测战队是否存在
     */
    public static final String CHECK_NAME_TEAM_BY = "api/common/checkNameTeamBy";
    /**
     * 10.战队基本数据修改
     */
    public static final String UPDATE_TEAM = "api/competition/updateTeam";
    /**
     * 12.战队详情页
     */
    public static final String TEAM_DETAIL = "api/competition/teamDetail";
    /**
     * 13.分页获取可加入的战队
     */
    public static final String GET_ALL_ALLOW_APPLY_FORTEAM = "api/competition/getAllAllowApplyForTeam";
    /**
     * 23.解散战队
     */
    public static final String DISSOLVE_TEAM = "api/competition/dissolveTeam";
    /**
     * 14.申请加入战队
     */
    public static final String APPLY_FOR_TEAM = "api/competition/applyForTeam";
    /**
     * 15.踢出队员
     */
    public static final String KICK_OUT_TEAM_MEMBER = "api/competition/kickOutTeamMember";
    /**
     * 24.我的战队列表
     */
    public static final String MY_TEAM_LIST = "api/competition/myTeamList";
    /**
     * 16.修改战队加入申请状态
     */
    public static final String API_COMPETITION_AMEND_TEAM_APPLY_STATUS = "api/competition/amendTeamApplyStatus";
    /**
     * 19.退出战队
     */
    public static final String USER_QUIT_TEAM = "api/competition/userQuitTeam";
    /**
     * 18.获取战队成员列表
     */
    public static final String GET_TEAM_MEMBER_LIST = "api/competition/getTeamMemberList";
    /**
     * 19.战队设置/取消管理员
     */
    public static final String SET_TEAM_MANAGE = "api/competition/setTeamManage";
    /**
     * 22.移交队长
     */
    public static final String TRANSFER_THE_CAPTAIN = "api/competition/transferTheCaptain";
    /**
     * 26.申请列表
     */
    public static final String GET_APPLY_FOR_TEAM_LIST = "api/competition/getApplyForTeamList";
    /**
     * 25.获取所有新申请加入比赛的列表
     */
    public static final String GET_APPLY_FOR_FIRST_ALL = "api/competition/getApplyForFirstAll";
    /**
     * 1.修改申请加入比赛状态
     */
    public static final String UPDATE_APPLY_FOR_COMPETE = "api/competition/updateApplyForCompete";
    /**
     * 社区模块
     * 申请加入电竞社
     */
    public static final String APPLY_FOR_JOIN_UNIVERSITY_CLUB = "api/topic/applyForJoinUniversityClub";
    /**
     * 社区模块
     * 申请创建电竞社
     */
    public static final String APPLY_FOR_CREATE_UNIVERSITY = "api/topic/applyForCreateUniversity";
    /**
     * 社区模块
     * 获取大学名称
     */
    public static final String GET_UNIVERSITY_NAME_LIST = "api/common/getUniversityNameList";
    /**
     * 社区模块
     * 获取电竞社列表
     */
    public static final String GET_UNIVERSITY_CLUB_LIST = "api/topic/getUniversityClubList";

    /**
     * 社区模块
     * 获取线上俱乐部列表
     */
    public static final String GET_ONLINE_CLUB_LIST = "api/topic/getLineOnClubOrderList";

    /**
     * 帖子
     * 收藏
     */
    public static final String ADD_COLLECT = "api/mine/addCollect";

    /**
     * 帖子
     * 删除
     */
    public static final String DELETE_TOPIC_BY_ID = "api/topic/deleteTopicById";

    private final String message;
    private final String url;

    ApiEnum(String message, String url) {
        this.message = message;
        this.url = url;
    }

    /**
     * Gets message.
     *
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * Gets url.
     *
     * @return the url
     */
    public String getUrl() {
        return url;
    }

}